Create GitHub action workflows#44
Merged
omaralalwi merged 3 commits intoMay 22, 2026
Merged
Conversation
…suite - Bump actions/checkout to v4 (v2 is deprecated). - Add matrix strategy across PHP 8.1, 8.2, 8.3, 8.4 to match the package's `^8.1.0` constraint, with fail-fast disabled so all versions report independently. - Use ramsey/composer-install@v3 for Composer dependency caching keyed by composer.lock and PHP version. - Add concurrency group with cancel-in-progress to save CI minutes when pushes/PRs are superseded. - Replace the single PHPStan step with separate steps for lint (Pint --test), static analysis (PHPStan), type coverage (Pest), and unit tests (Pest), mirroring `composer test` locally and surfacing failures by category in the Actions UI. - Drop the redundant `test:standard-src-code` composer script in favor of the existing `test:types` script (`phpstan analyse --ansi`), which the workflow now invokes. Co-authored-by: Cursor <cursoragent@cursor.com>
Member
|
Thanks for kicking this off, @moassaad! I pushed an enhancement commit on top of your branch (maintainer-edit is enabled on this PR, so authorship credit stays with you). What changed
WhyThe goal is to make community contributions self-validating: every push and PR will exercise lint, static analysis, type coverage, and unit tests across every supported PHP version, so reviewers see a clear pass/fail per category instead of having to run things locally. Heads-up on the first runThree steps may surface pre-existing issues the first time the workflow runs against
If any of those fail, options are: add the missing types/format, lower the threshold in |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
My contribution regarding an automation to check the static code and it has many features:-
phpstanpackage.